package cn.wenhe9.yygh.user.client;

import cn.wenhe9.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author DuJinliang
 * 2022/4/6
 */
@FeignClient(value = "service-user", path = "/api/user/patient")
@Component
public interface PatientFeignClient {
    /**
     * 根据就诊人id获取就诊人信息
     * @param id Long
     * @return Patient
     */
    @GetMapping("/inner/get/{id}")
    Patient getPatientOrder(
            @PathVariable(name = "id") Long id
    );
}
